Skip to content

only link against geos C API on non-windows platforms #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 11, 2014

Conversation

megies
Copy link
Contributor

@megies megies commented Mar 10, 2014

Currently trying to build basemap on Debian Linux using the system wide global GEOS installation fails (installed via aptitude, see https://packages.debian.org/search?keywords=libgeos&searchon=names&suite=stable&section=all).

This is due to basemap trying to link against the C++ library and looking for a file /usr/lib/libgeos.so while GEOS only provides /usr/lib/libgeos-3.3.3.so. I reported this circumstance to the Debian package maintainer and he replied that it is bad practice to link against the C++ library (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741242). Following his reply I removed 'geos' from the library list and basemap builds OK and also the normal plotting seems to work fine.

For Debian Linux this PR makes basemap install like a charm simply using pip install basemap (with the respective options to allow files not directly hosted on pypi), removing the need to download the source code and manually compiling the GEOS library included in the source.

I am not sure if this creates problems in other parts of basemap, though...?

@jswhit
Copy link

jswhit commented Mar 11, 2014

Can't see the harm - although I do believe there was a reason I put that in there in the first place.

Could you add a Changelog entry?

@megies
Copy link
Contributor Author

megies commented Mar 11, 2014

I really hope I am not breaking anything by this change, for me on Debian Linux it is working at least. But I think for many users it might be a huge gain to be able to just 'pip install' basemap..

jswhit pushed a commit that referenced this pull request Mar 11, 2014
only link against geos C API on non-windows platforms
@jswhit jswhit merged commit e234a34 into matplotlib:master Mar 11, 2014
@megies
Copy link
Contributor Author

megies commented Mar 11, 2014

That was a quick merge.. I wanted to propose to add some more tiny bits of information to the GEOS failure message.. I'll open another PR for it.

@megies megies deleted the geos_c_linking branch March 11, 2014 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants